package com.whu.tcx01.service;

import com.whu.tcx01.dao.NodeMapper;
import com.whu.tcx01.kmeans.Point;
import com.whu.tcx01.pojo.MyNode;
import com.whu.tcx01.pojo.MyPoint;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NodeServiceImpl implements NodeService{

    @Autowired
    private NodeMapper nodeMapper;

    @Override
    public List<MyNode> queryAllNodes(int hashLevel) {
        return nodeMapper.queryAllNodes(hashLevel);
    }

    @Override
    public List<Point> queryAllPoints() {
        return nodeMapper.queryAllPoints();
    }

    @Override
    public List<MyPoint> queryAll() {
        return nodeMapper.queryAll();
    }
}
